/*
 *  Copyright:  (C) 2018 LingYun IoT System Studio
 *              All rights reserved.
 *
 *  File name:  stdout.c
 *Description:  Three ways to output message.
 *
 *    Version:  1.1
 *     Author:  Guo Wenxue <guowenxue@gmail.com>
 *		        Copied by Zhu Tianyin <zhuty_cn@163.com>
 *  ChangeLog:  1.0  Release initial version in 2018.
 *              1.1  Copy and change some details on "01/06/2021".
 */
#include <stdio.h>
#include <unistd.h>
#include <string.h>

#define MSG_STR "Hello World\n"

int main(int main, char **argv)
{
	printf("%s", MSG_STR);
	fputs(MSG_STR, stdout);
	write(STDOUT_FILENO, MSG_STR, strlen(MSG_STR));

	return 0;
}
